#include<stdio.h>

int main( void ) {
    double counter = 1000.00, sum = 0.00;

    for( ; counter >= 3.01; )
        sum += ( counter /= 7.05 ) * 7.05;

    printf( "Sum is %lf.\n", sum );

    return 0;
}